package online.lmds.sdmanage.main.device.service;

import online.lmds.sdmanage.common.entity.Page;
import online.lmds.sdmanage.common.entity.Result;
import online.lmds.sdmanage.main.device.entity.Device;
import online.lmds.sdmanage.main.device.entity.DeviceLog;

/**
 * Created by Brighten Ma on 2017/4/30.
 * 设备Service
 */
public interface DeviceLogService {


    /**
     * 保存设备
     * @param log
     * @return
     */
    Result save(DeviceLog log);


    /**
     * 通过id 查找设备
     * @param log
     * @return
     */
    Result getById(DeviceLog log);

    /**
     * 通过uid查找设备
     * @param log
     * @return
     */
    Result getByUid(DeviceLog log);

    Result list(DeviceLog log, Page page);

    Result listByUserId(DeviceLog log, Page page);

    Result updateDeviceLogById(DeviceLog log);

    Result updateDeviceLogByUid(DeviceLog log);

    Result updateStatusById(DeviceLog log);

    Result updateStatusByUid(DeviceLog log);
}
